package adapter;

public class DuckTest {
    public static void main(String[] args) {
        Duck duck = new MallardDuck();

        Turkey turkey = new WildTurkey();
        Duck duckAdapter = new TurkeyAdapter(turkey);

        System.out.println("--------------------------");

        duck.quack();
        duck.fly();

        System.out.println("--------------------------");

        turkey.gobble();
        turkey.fly();

        System.out.println("--------------------------");

        duckAdapter.quack();
        duckAdapter.fly();
    }
}
